<template>
  <div class="address-item">
      <div class="avatar">
          <img :src="avatar" alt="">
      </div>
      <div class="content">
          <span>{{ name }}</span>
      </div>
  </div>
</template>

<script>
export default {
    name: 'address-item',
    props: {
        avatar: {
            type: String,
            required: true,
        },
        name: {
            type: String,
            required: true,
        },
    }
}
</script>

<style scoped>
.address-item {
    height: 48px;
    width: 100%;
    display: flex;
    border-bottom: 1px solid rgb(243 243 243)
}
.address-item > .avatar {
    height: 100%;
    width: 56px;
    display: flex;
    flex-shrink: 0;
}
.address-item > .avatar > img {
    height: 32px;
    width: 32px;
    margin: auto;
}
.address-item > .content {
    width: 100%;
    height: 100%;
    display: flex;
    font-size: 14px;
}
.address-item > .content > span {
    margin: auto 0;
}

</style>